11. GPRS Commands > 11.1 AT+CGACT   PDP context activate or deactivate

11.1
AT+CGACT   PDP context activate or deactivate
Syntax
Test Command  
Response(s)
+CGACT: (list of supported <state>s)
Read Command  
Response(s)
Write Command  
Response(s)
Reference(s) 
PIN 
ASC0 
ASC1 
USB 
MUX1 
MUX2 
MUX3 
Charge 
Last 
GSM 07.07

Command Description
The test command is used for requesting information on the supported PDP context activation states.
The read command returns the current activation states for all the defined PDP contexts.
The write command is used to activate or deactivate the specified PDP context(s). After the command has com­pleted, the MT remains in V.250 command state. If any PDP context is already in the requested state, the state for that context remains unchanged. If the MT is not GPRS attached when the activation form of the command is executed, the MT first performs a GPRS attach and then attempts to activate the specified contexts. If no <cid>s are specified the activation/deactivation form of the command activates/deactivates all defined contexts.

Parameter Description
 
<state>(num)
Indicates the state of PDP context activation.
0
deactivated
[1]
activated
 
<cid>(num)
PDP Context Identifier is a numeric parameter which specifies a particular PDP context definition. The param­eter is local to the TE-MT interface and is used in other PDP context related commands.
1...2
 


Notes
•
ATH will deactivate any PDP context.
•
•
A maximum of 2 contexts can be activated at the same time, no matter on which interface. Trying to activate more than 2 contexts will cause "+CME ERROR: operation temporary not allowed". Note that, depending on the provider, the number of activated contexts may be further restricted.
Remember that contexts may be activated implicitly by using the ATD*98# or ATD*99# GPRS compatibility commands without specifying a <cid>.
•
If an activated context will be deactivated without using the command AT+CGACT, then the result code "NO CARRIER" will be issued to indicate the context deactivation. This happens for example if the context deac­tivation is forced by the network or if deactivation results from a network deregistration with AT+COPS=2.